package mvc.controller;

import foundation.model.Result;
import mvc.service.AppService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by lidedong on 2017/10/11 0011.
 */
@Controller
@RequestMapping("/app")
public class AppController {

    @Resource
    private AppService appService;

    @RequestMapping(value = "/query",method = RequestMethod.POST)
    @ResponseBody
    public Result query() {
        return Result.createSuccessResult().setData(appService.get(81));
    }
}
